import request from '@/utils/request'

export const getEmployeesSimple = () => request.get('/sys/user/simple')

export const getEmployees = params => request.get('/sys/user', { params })

export const addEmployees = data => request.post('/sys/user', data)

export const delEmployees = id => request.delete('/sys/user/' + id)

export const importEmployees = data => request.post('/sys/user/batch', data)
// 更新员工数据
export const saveUserInfoById = data => request.put('/sys/user/' + data.id, data)
// 获取岗位信息
export const getJobDetail = id => request.get(`/employees/${id}/jobs`)

export const assignRoles = data => request.put('/sys/user/assignRoles', data)
